package com.ryh.dao;

import com.ryh.entity.Reader;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ReaderDao {
    List<Reader> getAllReaders();

    Reader getReaderById(@Param("readerId") String readerId);

    void addReader(Reader reader);

    void updateReader(Reader reader);

    void deleteReader(@Param("readerId") String readerId);
}